SET(TARGET_NAME "sgtCore")

INCLUDE_DIRECTORIES (../include)

ADD_DEFINITIONS(-DSGTCORE_LIB)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)

FILE(GLOB_RECURSE PUBLIC_HEADERS "../include/*.h")

FILE(GLOB_RECURSE SOURCE_FILES "*.cpp" )

ADD_MSVC_PRECOMPILED_HEADER("sgtCommon.h" "sgtCommon.cpp" SOURCE_FILES)

ADD_LIBRARY (${TARGET_NAME} SHARED ${PUBLIC_HEADERS} ${SOURCE_FILES})

TARGET_LINK_LIBRARIES(${TARGET_NAME} LINK_PRIVATE ${LUA_LIBS})
TARGET_LINK_LIBRARIES(${TARGET_NAME} ${OSG_LIBS})

INSTALL(TARGETS ${TARGET_NAME}
	RUNTIME DESTINATION bin/${FLAVOR}
	ARCHIVE DESTINATION ../sources/sgtCore/lib)

# GENERATE_DOCUMENTATION(SimCore SimCore)
	